package org.domain.rescue2011.entity;

// Generated 16-ago-2011 19:40:14 by Hibernate Tools 3.3.0.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ObjetivosPersonal generated by hbm2java
 */
@Entity
@Table(name = "objetivos_personal", catalog = "rescue")
public class ObjetivosPersonal implements java.io.Serializable {

	private Integer idObjetivosPersonal;
	private Integer publPersObj;
	private Integer confPersObj;
	private Integer herrPersObj;
	private Integer transPersObj;
	private Integer colabPersObj;
	private Integer proyPersObj;
	private Integer marcaTemporal;
	private Integer idPersonalRedmine;
	private Set<Objetivos> objetivoses = new HashSet<Objetivos>(0);

	public ObjetivosPersonal() {
	}

	public ObjetivosPersonal(Integer publPersObj, Integer confPersObj,
			Integer herrPersObj, Integer transPersObj, Integer colabPersObj,
			Integer proyPersObj,Integer marcaTemporal, Integer idPersonalRedmine,
			Set<Objetivos> objetivoses) {
		this.publPersObj = publPersObj;
		this.confPersObj = confPersObj;
		this.herrPersObj = herrPersObj;
		this.transPersObj = transPersObj;
		this.colabPersObj = colabPersObj;
		this.proyPersObj = proyPersObj;
		this.marcaTemporal = marcaTemporal;
		this.idPersonalRedmine = idPersonalRedmine;
		this.objetivoses = objetivoses;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "idObjetivos_personal", unique = true, nullable = false)
	public Integer getIdObjetivosPersonal() {
		return this.idObjetivosPersonal;
	}

	public void setIdObjetivosPersonal(Integer idObjetivosPersonal) {
		this.idObjetivosPersonal = idObjetivosPersonal;
	}

	@Column(name = "publ_pers_obj")
	public Integer getPublPersObj() {
		return this.publPersObj;
	}

	public void setPublPersObj(Integer publPersObj) {
		this.publPersObj = publPersObj;
	}

	@Column(name = "conf_pers_obj")
	public Integer getConfPersObj() {
		return this.confPersObj;
	}

	public void setConfPersObj(Integer confPersObj) {
		this.confPersObj = confPersObj;
	}

	@Column(name = "herr_pers_obj")
	public Integer getHerrPersObj() {
		return this.herrPersObj;
	}

	public void setHerrPersObj(Integer herrPersObj) {
		this.herrPersObj = herrPersObj;
	}

	@Column(name = "trans_pers_obj")
	public Integer getTransPersObj() {
		return this.transPersObj;
	}

	public void setTransPersObj(Integer transPersObj) {
		this.transPersObj = transPersObj;
	}

	@Column(name = "colab_pers_obj")
	public Integer getColabPersObj() {
		return this.colabPersObj;
	}

	public void setColabPersObj(Integer colabPersObj) {
		this.colabPersObj = colabPersObj;
	}

	@Column(name = "proy_pers_obj")
	public Integer getProyPersObj() {
		return this.proyPersObj;
	}

	public void setProyPersObj(Integer proyPersObj) {
		this.proyPersObj = proyPersObj;
	}

	@Column(name = "idPersonal_redmine")
	public Integer getIdPersonalRedmine() {
		return this.idPersonalRedmine;
	}

	public void setIdPersonalRedmine(Integer idPersonalRedmine) {
		this.idPersonalRedmine = idPersonalRedmine;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "objetivosPersonal")
	public Set<Objetivos> getObjetivoses() {
		return this.objetivoses;
	}

	public void setObjetivoses(Set<Objetivos> objetivoses) {
		this.objetivoses = objetivoses;
	}

	@Column(name = "marca_temporal")
	public Integer getMarcaTemporal() {
		return marcaTemporal;
	}

	public void setMarcaTemporal(Integer marcaTemporal) {
		this.marcaTemporal = marcaTemporal;
	}
	
	

}
